package com.lagou.homework;

import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.mapreduce.Reducer;

import java.io.IOException;

public class HomeworkReducer extends Reducer<Bean, NullWritable, Bean, NullWritable> {

    @Override
    protected void reduce(Bean key, Iterable<NullWritable> values, Context context) throws IOException, InterruptedException {

        for (NullWritable value : values) {

            context.write(key, NullWritable.get());
        }
    }
}
